<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="/common/template :: header(~{::title},~{::link},~{::style})">
</head>
<body>
    <div class="layui-form timo-compile">
    <form th:action="@{/vegetation/vegetation/save}">
        <input type="hidden" name="id" th:if="${vegetation}" th:value="${vegetation.id}">
        <div class="layui-form-item">
            <label class="layui-form-label">网格ID</label>
            <div class="layui-input-inline">
<!--                <input class="layui-input" type="text" name="grid_id" placeholder="请输入网格ID" th:value="${vegetation?.grid_id}">-->
                <select name="grid_id"  lay-filter="aihao">
                    <option th:value="${vegetation?.grid_id}" th:text="${vegetation?.grid_id}">请选择</option>
                    <option  th:each="item:${list}"
                             th:selected="${vegetation?.grid_id eq item.id}"
                             th:value="${item.id}"
                             th:text="${item.name}"
                        ></option>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">巡检时间</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="inspection_time" placeholder="请输入巡检时间" th:value="${vegetation?.inspection_time}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">巡检人名字</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="inspection_name" placeholder="请输入巡检人名字" th:value="${vegetation?.inspection_name}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">巡检人电话</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="inspection_phone" placeholder="请输入巡检人电话" th:value="${vegetation?.inspection_phone}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">巡检人ID</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="user_id" placeholder="请输入巡检人ID" th:value="${vegetation?.user_id}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">异常情况</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="exception_content" placeholder="请输入异常情况" th:value="${vegetation?.exception_content}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">是否异常</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="is_exception" placeholder="请输入是否异常" th:value="${vegetation?.is_exception}">
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                <textarea placeholder="请输入内容" class="layui-textarea" name="remark">[[${vegetation?.remark}]]</textarea>
            </div>
        </div>
        <div class="layui-form-item timo-finally">
            <button class="layui-btn ajax-submit"><i class="fa fa-check-circle"></i> 保存</button>
            <button class="layui-btn btn-secondary close-popup"><i class="fa fa-times-circle"></i> 关闭</button>
        </div>
    </form>
</div>
<script th:replace="/common/template :: script"></script>
</body>
</html>